package org.ww.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.ww.common.utils.R;
import org.ww.order.vo.WareSkuLockVo;

import java.util.List;

/**
 * @program: gmall
 * @description: 购物车
 * @author: ww
 * @create: 2024-05-27 11:14
 **/

@FeignClient("gmall-ware")
public interface WareFeignService {

    @PostMapping("/ware/waresku/hasstock")
    R hasstock(@RequestBody List<Long> skuIds);

    @GetMapping("/ware/wareinfo/fare")
    R getFare(@RequestParam("addrId") Long addrId);

    @PostMapping("/ware/waresku/lock/order")
    R orderLockStock(@RequestBody WareSkuLockVo vo);
}
